<%@page import="y1s.controller.Paginate"%>
<%@page import="y1s.controller.Utils"%>
<%@page import="com.mongodb.DBObject"%>
<%@page import="com.mongodb.DBCursor"%>
<%
String topic = (String) request.getAttribute("name");
int total = Integer.parseInt((String) request.getAttribute("total"));
int p = Integer.parseInt((String)request.getAttribute("page"));
int np = Integer.parseInt((String)request.getAttribute("np"));
DBCursor domain = (DBCursor) request.getAttribute("domain");
DBObject domains = (DBObject) request.getAttribute("wip");
String title = "Ip "+topic;
String description = "Ip "+topic+" .The website has the same ip "+topic;
String keywords = topic+",website,site,5ty,5ty.org,alexa,google pagerank,pagerank,whois,ip,related site,infomation site";
%>
<jsp:include page="/layout/header.jsp">
	<jsp:param name="title" value="<%=title %>"/>
	<jsp:param name="description" value="<%=description %>"/>
	<jsp:param name="keywords" value="<%=keywords %>"/>
	<jsp:param name="index" value="true"/>
</jsp:include>
		<div class="body">
			<div class="body_left">
				<div class="top_left">
					<%@ include file='/adv/left.jsp'%>
				</div>
				
				<div class="update">
					
				</div>
				
			</div>
			<div class="body_right">
				<div class="top">
					<%=topic %>
					
				</div>
				<div class="content padding">
					<form action="/si" class="s_whois">
						<input type="text" name="ip" value="67.205.109.33" onclick="javascript:this.value = ''"/>
						<button>Infomation Ip</button>
					</form>
					<div class="adv_menu">
						<%@ include file='/adv/menu.jsp'%>
					</div>
					<hr size="1"/>
					<h2>Domain same ip <%=topic %> ( Total : <%=total %> )</h2>
					<%=Utils.returnSame(domain) %>
					<div class="right">
						<%=Paginate.paginate(p,np,7,"?") %>
					</div>
					<div class="clear"></div>
					<h2>Whois ip <%=topic %></h2><br/>
					<%=Utils.returnWhois(domains.get("wip").toString()) %>
				</div>
			</div>
			<div class="clear"></div>
		</div>
<script type="text/javascript" src="/js/jquery.js"></script>		
<script type="text/javascript" src="/js/update.js"></script>		
<%@ include file='/layout/footer.jsp'%>		